package com.gsnd.gsnd22estore.mapper;

import com.gsnd.gsnd22estore.domain.EsUser;
import com.gsnd.gsnd22estore.dto.UpdateUserDto;
import com.gsnd.gsnd22estore.dto.UserDto;
import com.gsnd.gsnd22estore.dto.UserLoginDto;
import com.gsnd.gsnd22estore.dto.UserRegisterDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

/**
 * @Entity com.gsnd.gsnd22estore.domain.EsUser
 */
@Service
public interface EsUserMapper {
    EsUser selectByUsername(String username);

    UserDto selectById(Integer userId);

    void insert(EsUser esUser);

    //修改用户密码
    void updatePassword(@Param("newPassword") String newPassword,
                        @Param("userId") Integer userId);

    void update(UpdateUserDto userDto);

}




